package com.demo.springboot.controller;

import com.demo.springboot.pojo.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Iterator;

/**
 * @ClassName IndexController
 * @Description TODO
 * @Author tianqinglong
 * @Date 9:07 2022/7/14
 * @Version 1.0
 **/
@Controller
public class IndexController {

    @RequestMapping("/")
    public String index(Model model){

        return "index";
    }
    @RequestMapping("/test")
    public ModelAndView test(Model model){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("jsp/test");
        return modelAndView;
    }



}
